package cn.edu.ncepu;

/**
 * 拉格朗日插值的单项：y * 分式项
 */
public class LagrangeItem {
    private final double y;
    private final LagrangeFraction lagrangeFraction;

    public LagrangeItem(double y, LagrangeFraction lagrangeFraction) {
        this.y = y;
        this.lagrangeFraction = lagrangeFraction;
    }

    // Getter方法
    public double getY() {
        return y;
    }

    public LagrangeFraction getLagrangeFraction() {
        return lagrangeFraction;
    }
}